import http from '@/api'
import { PORT1 } from '@/api/config/port'

import { ComplianceActiveReq, ComplianceDetails, ComplianceSearchReq } from '../interface/user'

export const ComplianceSearch = (params: ComplianceSearchReq) => {
  return http.post<any>(PORT1 + `/entity/compliance/search`, params)
}

export const ComplianceCreate = (params: ComplianceDetails) => {
  return http.post<any>(PORT1 + `/entity/compliance/create`, params)
}

export const ComplianceUpdate = (params: ComplianceDetails) => {
  return http.post<any>(PORT1 + `/entity/compliance/update`, params)
}

export const ComplianceActive = (params: ComplianceActiveReq) => {
  return http.post<any>(PORT1 + `/entity/compliance/active`, params)
}
